<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <script type="text/javascript" src="/erp/js/jquery.2.1.4.js"></script>
    <title>修改密码</title>
    <script>
        function check() {
            var flag = true;
            if ($("#pwd").val().trim()==""){
                $("#che").html("密码不能为空");
                flag = false;
            }
            if ($("#pwd").val().trim()!=$("#repwd").val().trim()){
                $("#che").html("密码输入不一致")
                flag = false;
            }
            return flag;
        }
    </script>
</head>
<body>
<div style="text-align: center;margin-top: 35px">
    <form action="${pageContext.request.contextPath}/userCtrl?parm=pwd" method="post">
        <div id="che"></div>
        密 码：<input id="pwd" type="text" name="pwd"><br><br>
        确 认：<input id="repwd" type="text"><br><br>
        <input type="hidden" name="id" value="${param.id}">
        <input type="submit" onclick="return check();" value="确定"/>
    </form>
</div>
</body>
</html>
